/*
 * Copyright 2006 - 2008 Cypal Solutions (tools@cypal.in)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
package in.cypal.studio.gwt.core.common;

import in.cypal.studio.gwt.core.Activator;

/**
 * @author Prakash G.R.
 * 
 */
public class Constants {

	public static final String PLUGIN_ID = Activator.PLUGIN_ID;

	// GWT related stuff
	public static final String GWT_ENTRY_POINT_CLASS = "com.google.gwt.core.client.EntryPoint"; //$NON-NLS-1$
	public static final String GWT_SHELL_CLASS = "com.google.gwt.dev.GWTShell"; //$NON-NLS-1$
	public static final String GWT_COMPILER_CLASS = "com.google.gwt.dev.GWTCompiler"; //$NON-NLS-1$
	public static final Object REMOTE_SERVICE_CLASS = "RemoteService";
	public static final String GWT_XML_EXT = "gwt.xml";
	public static final String CLIENT_PACKAGE = "client";
	public static final String SERVER_PACKAGE = "server";
	public static final String PUBLIC_FOLDER = "public";

	// Attributes for Lauch configuration

	public static final String LAUNCH_CONFIG_TYPE = "in.cypal.studio.gwt.core.launchConfigurationType"; //$NON-NLS-1$
	public static final String LAUNCH_ATTR_USE_DEFAULT_URL = PLUGIN_ID + ".launchAttrUseDefaultUrl"; //$NON-NLS-1$
	public static final String LAUNCH_ATTR_URL = PLUGIN_ID + ".launchAttrUrl"; //$NON-NLS-1$
	public static final String LAUNCH_ATTR_USE_EMBEDDED_SERVER = PLUGIN_ID + ".launchAttrUseEmbeddedServer"; //$NON-NLS-1$
	public static final String LAUNCH_ATTR_HEADLESS = PLUGIN_ID + ".launchAttrHeadless"; //$NON-NLS-1$
	public static final String LAUNCH_ATTR_PORT = PLUGIN_ID + ".launchAttrPort";//$NON-NLS-1$
	public static final String LAUNCH_ATTR_LOGLEVEL = PLUGIN_ID + ".launchAttrLogLevel";//$NON-NLS-1$
	public static final String LAUNCH_ATTR_OUTDIR = PLUGIN_ID + ".launchAttrOutDir";//$NON-NLS-1$
	public static final String LAUNCH_ATTR_STYLE = PLUGIN_ID + ".launchAttrStyle";//$NON-NLS-1$
	public static final String LAUNCH_ATTR_VMOPTIONS = PLUGIN_ID + ".launchVmOptions";//$NON-NLS-1$
	public static final String LAUNCH_ATTR_MODULE_NAME = PLUGIN_ID + ".launchModuleName";//$NON-NLS-1$
	public static final String LAUNCH_ATTR_PROJECT_NAME = PLUGIN_ID + ".launchProjectName";//$NON-NLS-1$
	public static final String LAUNCH_ATTR_GWT_COMPILE = PLUGIN_ID + ".launchProcess";//$NON-NLS-1$
	public static final String LAUNCH_ATTR_WHITELIST = PLUGIN_ID + ".launchWhitelist";//$NON-NLS-1$
	public static final String LAUNCH_ATTR_BLACKLIST = PLUGIN_ID + ".launchBlacklist";//$NON-NLS-1$
	public static final String COMMA_SEPARATED_MESSAGE = "<comma separated list>";//$NON-NLS-1$

	// Folders
	// public static final String OUTPUT_FOLDER= "build/gwtOutput";
	// //$NON-NLS-1$

	// Preference keys
	public static final String GWT_HOME_PREFERENCE = "GWT_HOME_PREFERENCE";
	public static final String GWT_OUTPUT_PREFERENCE = "GWT_OUTPUT_PREFERENCE";
	public static final String UPDATE_ASYNC_PREFERENCE = "UPDATE_ASYNC_PREFERENCE";
	public static final String DEFAULT_VM_OPTION_PREFERENCE = "DEFAULT_VM_OPTION_PREFERENCE";
	public static final String DELETE_SERVICE_PREFERENCE = "DELETE_SERVICE_PREFERENCE";
	public static final String COMPILE_AT_FULLBUILD_PREFERENCE = "COMPILE_AT_FULLBUILD_PREFERENCE";
	public static final String COMPILE_AT_PUBLISH_PREFERENCE = "COMPILE_AT_PUBLISH_PREFERENCE";

	// Plugin.xml defined
	private static final String QUALIFIER = PLUGIN_ID + ".";
	public static final Object FACET_ID = QUALIFIER + "gwtFacet";
	public static final String NATURE_ID = QUALIFIER + "gwtNature";
	public static final String BUILDER_ID = QUALIFIER + "gwtBuilder";
	public static final String MODULE_XML_CONTENT_ID = QUALIFIER + "moduleXml";

	public static final String GWT_HOME_CPE = "GWT_HOME";
	// public static final QualifiedName IS_HOSTED_DEPLOY_MODE = null;
	public static final String GWT_HOME_PATH = "GWT_HOME";

}
